package com.ktmall.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CartItemVo {
    //t_cart购物车表的主键ID
    private Integer id;
    //商品ID
    private Integer goodsId;
    //SKU ID
    private Integer skuId;
    //商品名称
    private String name;
    //图片
    private String picture;
    //数量
    private Integer count;
    //价格
    private BigDecimal price;
    //当前价格（对SKU价格打9折）
    private BigDecimal nowPrice;
    //库存
    private Integer stock;
    //是否选中
    private boolean selected = true;
    //属性文字
    private String attrsText;

    public CartItemVo(Integer id, Integer goodsId, Integer skuId, String name, String picture, Integer count, BigDecimal price, Integer stock, boolean selected, String attrsText) {
        this.id = id;
        this.goodsId = goodsId;
        this.skuId = skuId;
        this.name = name;
        this.picture = picture;
        this.count = count;
        this.price = price;
        this.stock = stock;
        this.selected = selected;
        this.attrsText = attrsText;
    }

}
